home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / ASRegistry.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  11.8 KB  |  253 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ASRegistry.r
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __ASREGISTRY_R__
  20. #define __ASREGISTRY_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define keyAETarget                     'targ'                /*   0x74617267   */
  27. #define keySubjectAttr                     'subj'                /*   0x7375626a   */
  28.                                                             /*  Magic 'returning' parameter:  */
  29. #define keyASReturning                     'Krtn'                /*   0x4b72746e   */
  30.                                                             /*  AppleScript Specific Codes:  */
  31. #define kASAppleScriptSuite             'ascr'                /*   0x61736372   */
  32. #define kASTypeNamesSuite                 'tpnm'                /*   0x74706e6d   */
  33.                                                             /*  dynamic terminologies  */
  34. #define typeAETE                         'aete'                /*   0x61657465   */
  35. #define typeAEUT                         'aeut'                /*   0x61657574   */
  36. #define kGetAETE                         'gdte'                /*   0x67647465   */
  37. #define kGetAEUT                         'gdut'                /*   0x67647574   */
  38. #define kUpdateAEUT                     'udut'                /*   0x75647574   */
  39. #define kUpdateAETE                     'udte'                /*   0x75647465   */
  40. #define kCleanUpAEUT                     'cdut'                /*   0x63647574   */
  41. #define kASComment                         'cmnt'                /*   0x636d6e74   */
  42. #define kASLaunchEvent                     'noop'                /*   0x6e6f6f70   */
  43. #define keyScszResource                 'scsz'                /*   0x7363737A   */
  44. #define typeScszResource                 'scsz'                /*   0x7363737A   */
  45.                                                             /*  subroutine calls  */
  46. #define kASSubroutineEvent                 'psbr'                /*   0x70736272   */
  47. #define keyASSubroutineName             'snam'                /*   0x736e616d   */
  48.  
  49.                                                             /*  Binary:  */
  50. #define kASAdd                             '+   '                /*   0x2b202020   */
  51. #define kASSubtract                     '-   '                /*   0x2d202020   */
  52. #define kASMultiply                     '*   '                /*   0x2a202020   */
  53. #define kASDivide                         '/   '                /*   0x2f202020   */
  54. #define kASQuotient                     'div '                /*   0x64697620   */
  55. #define kASRemainder                     'mod '                /*   0x6d6f6420   */
  56. #define kASPower                         '^   '                /*   0x5e202020   */
  57. #define kASEqual                         '=   '
  58. #define kASNotEqual                     '≠   '                /*   0xad202020   */
  59. #define kASGreaterThan                     '>   '
  60. #define kASGreaterThanOrEqual             '>=  '
  61. #define kASLessThan                     '<   '
  62. #define kASLessThanOrEqual                 '<=  '
  63. #define kASComesBefore                     'cbfr'                /*   0x63626672   */
  64. #define kASComesAfter                     'cafr'                /*   0x63616672   */
  65. #define kASConcatenate                     'ccat'                /*   0x63636174   */
  66. #define kASStartsWith                     'bgwt'
  67. #define kASEndsWith                     'ends'
  68. #define kASContains                     'cont'
  69.  
  70.                                                             /*  event code for the 'error' statement  */
  71. #define kASErrorEventCode                 'err '                /*   0x65727220   */
  72. #define kOSAErrorArgs                     'erra'                /*   0x65727261   */
  73.                                                             /*  Properties:  */
  74. #define pLength                         'leng'                /*   0x6c656e67   */
  75. #define pReverse                         'rvse'                /*   0x72767365   */
  76. #define pRest                             'rest'                /*   0x72657374   */
  77. #define pInherits                         'c@#^'                /*   0x6340235e   */
  78.                                                             /*  User-Defined Record Fields:  */
  79. #define keyASUserRecordFields             'usrf'                /*   0x75737266   */
  80. #define typeUserRecordFields             'list'
  81.  
  82. #define keyASPrepositionAt                 'at  '                /*   0x61742020   */
  83. #define keyASPrepositionIn                 'in  '                /*   0x696e2020   */
  84. #define keyASPrepositionFrom             'from'                /*   0x66726f6d   */
  85. #define keyASPrepositionFor             'for '                /*   0x666f7220   */
  86. #define keyASPrepositionTo                 'to  '                /*   0x746f2020   */
  87. #define keyASPrepositionThru             'thru'                /*   0x74687275   */
  88. #define keyASPrepositionThrough         'thgh'                /*   0x74686768   */
  89. #define keyASPrepositionBy                 'by  '                /*   0x62792020   */
  90. #define keyASPrepositionOn                 'on  '                /*   0x6f6e2020   */
  91. #define keyASPrepositionInto             'into'                /*   0x696e746f   */
  92. #define keyASPrepositionOnto             'onto'                /*   0x6f6e746f   */
  93. #define keyASPrepositionBetween         'btwn'                /*   0x6274776e   */
  94. #define keyASPrepositionAgainst         'agst'                /*   0x61677374   */
  95. #define keyASPrepositionOutOf             'outo'                /*   0x6f75746f   */
  96. #define keyASPrepositionInsteadOf         'isto'                /*   0x6973746f   */
  97. #define keyASPrepositionAsideFrom         'asdf'                /*   0x61736466   */
  98. #define keyASPrepositionAround             'arnd'                /*   0x61726e64   */
  99. #define keyASPrepositionBeside             'bsid'                /*   0x62736964   */
  100. #define keyASPrepositionBeneath         'bnth'                /*   0x626e7468   */
  101. #define keyASPrepositionUnder             'undr'                /*   0x756e6472   */
  102.  
  103. #define keyASPrepositionOver             'over'                /*   0x6f766572   */
  104. #define keyASPrepositionAbove             'abve'                /*   0x61627665   */
  105. #define keyASPrepositionBelow             'belw'                /*   0x62656c77   */
  106. #define keyASPrepositionApartFrom         'aprt'                /*   0x61707274   */
  107. #define keyASPrepositionGiven             'givn'                /*   0x6769766e   */
  108. #define keyASPrepositionWith             'with'                /*   0x77697468   */
  109. #define keyASPrepositionWithout         'wout'                /*   0x776f7574   */
  110. #define keyASPrepositionAbout             'abou'                /*   0x61626f75   */
  111. #define keyASPrepositionSince             'snce'                /*   0x736e6365   */
  112. #define keyASPrepositionUntil             'till'                /*   0x74696c6c   */
  113.  
  114.                                                             /*  Terminology & Dialect things:  */
  115. #define kDialectBundleResType             'Dbdl'                /*   0x4462646c   */
  116.                                                             /*  AppleScript Classes and Enums:  */
  117. #define cConstant                         'enum'
  118. #define cClassIdentifier                 'pcls'
  119. #define cObjectBeingExamined             'exmn'
  120. #define cList                             'list'
  121. #define cSmallReal                         'sing'
  122. #define cReal                             'doub'
  123. #define cRecord                         'reco'
  124. #define cReference                         'obj '
  125. #define cUndefined                         'undf'                /*   0x756e6466   */
  126. #define cSymbol                         'symb'                /*   0x73796d62   */
  127. #define cLinkedList                     'llst'                /*   0x6c6c7374   */
  128. #define cVector                         'vect'                /*   0x76656374   */
  129. #define cEventIdentifier                 'evnt'                /*   0x65766e74   */
  130. #define cKeyIdentifier                     'kyid'                /*   0x6b796964   */
  131. #define cUserIdentifier                 'uid '                /*   0x75696420   */
  132. #define cPreposition                     'prep'                /*   0x70726570   */
  133. #define cKeyForm                         'kfrm'
  134. #define cScript                         'scpt'                /*   0x73637074   */
  135. #define cHandler                         'hand'                /*   0x68616e64   */
  136. #define cProcedure                         'proc'                /*   0x70726f63   */
  137.  
  138. #define cClosure                         'clsr'                /*   0x636c7372   */
  139. #define cRawData                         'rdat'                /*   0x72646174   */
  140. #define cString                         'TEXT'
  141. #define cStringClass                     'TEXT'
  142. #define cNumber                         'nmbr'                /*   0x6e6d6272   */
  143. #define cListOrRecord                     'lr  '                /*   0x6c722020   */
  144. #define cListOrString                     'ls  '                /*   0x6c732020   */
  145. #define cListRecordOrString             'lrs '                /*   0x6c727320   */
  146. #define cNumberOrDateTime                 'nd  '                /*   0x6e642020   */
  147. #define cNumberDateTimeOrString         'nds '                /*   0x6e647320   */
  148. #define cSeconds                         'scnd'                /*   0x73636e64   */
  149. #define enumBooleanValues                 'boov'                /*   0x626f6f76   */
  150. #define kAETrue                         'true'
  151. #define kAEFalse                         'fals'
  152. #define enumMiscValues                     'misc'                /*   0x6d697363   */
  153. #define kASCurrentApplication             'cura'                /*   0x63757261   */
  154.                                                             /*  User-defined property ospecs:  */
  155. #define formUserPropertyID                 'usrp'                /*   0x75737270   */
  156.  
  157.                                                             /*  Global properties:  */
  158. #define pASIt                             'it  '                /*   0x69742020   */
  159. #define pASMe                             'me  '                /*   0x6d652020   */
  160. #define pASResult                         'rslt'                /*   0x72736c74   */
  161. #define pASSpace                         'spac'                /*   0x73706163   */
  162. #define pASReturn                         'ret '                /*   0x72657420   */
  163. #define pASTab                             'tab '                /*   0x74616220   */
  164. #define pASPi                             'pi  '                /*   0x70692020   */
  165. #define pASParent                         'pare'                /*   0x70617265   */
  166. #define kASInitializeEventCode             'init'                /*   0x696e6974   */
  167. #define pASPrintLength                     'prln'                /*   0x70726c6e   */
  168. #define pASPrintDepth                     'prdp'                /*   0x70726470   */
  169. #define pASTopLevelScript                 'ascr'                /*   0x61736372   */
  170.  
  171.                                                             /*  Considerations  */
  172. #define kAECase                         'case'                /*   0x63617365   */
  173. #define kAEDiacritic                     'diac'                /*   0x64696163   */
  174. #define kAEWhiteSpace                     'whit'                /*   0x77686974   */
  175. #define kAEHyphens                         'hyph'                /*   0x68797068   */
  176. #define kAEExpansion                     'expa'                /*   0x65787061   */
  177. #define kAEPunctuation                     'punc'                /*   0x70756e63   */
  178. #define kAEZenkakuHankaku                 'zkhk'                /*   0x7a6b686b   */
  179. #define kAESmallKana                     'skna'                /*   0x736b6e61   */
  180. #define kAEKataHiragana                 'hika'                /*   0x68696b61   */
  181.                                                             /*  AppleScript considerations:  */
  182. #define kASConsiderReplies                 'rmte'                /*   0x726d7465   */
  183. #define enumConsiderations                 'cons'                /*   0x636f6e73   */
  184.  
  185. #define cCoercion                         'coec'                /*   0x636f6563   */
  186. #define cCoerceUpperCase                 'txup'                /*   0x74787570   */
  187. #define cCoerceLowerCase                 'txlo'                /*   0x74786c6f   */
  188. #define cCoerceRemoveDiacriticals         'txdc'                /*   0x74786463   */
  189. #define cCoerceRemovePunctuation         'txpc'                /*   0x74787063   */
  190. #define cCoerceRemoveHyphens             'txhy'                /*   0x74786879   */
  191. #define cCoerceOneByteToTwoByte         'txex'                /*   0x74786578   */
  192. #define cCoerceRemoveWhiteSpace         'txws'                /*   0x74787773   */
  193. #define cCoerceSmallKana                 'txsk'                /*   0x7478736b   */
  194. #define cCoerceZenkakuhankaku             'txze'                /*   0x74787a65   */
  195. #define cCoerceKataHiragana             'txkh'                /*   0x74786b68   */
  196.                                                             /*  Lorax things:  */
  197. #define cZone                             'zone'                /*   0x7a6f6e65   */
  198. #define cMachine                         'mach'                /*   0x6d616368   */
  199. #define cAddress                         'addr'                /*   0x61646472   */
  200. #define cRunningAddress                 'radd'                /*   0x72616464   */
  201. #define cStorage                         'stor'                /*   0x73746f72   */
  202.  
  203.                                                             /*  DateTime things:  */
  204. #define pASWeekday                         'wkdy'                /*   0x776b6479   */
  205. #define pASMonth                         'mnth'                /*   0x6d6e7468   */
  206. #define pASDay                             'day '                /*   0x64617920   */
  207. #define pASYear                         'year'                /*   0x79656172   */
  208. #define pASTime                         'time'                /*   0x74696d65   */
  209. #define pASDateString                     'dstr'                /*   0x64737472   */
  210. #define pASTimeString                     'tstr'                /*   0x74737472   */
  211.                                                             /*  Months  */
  212. #define cMonth                             'mnth'
  213. #define cJanuary                         'jan '                /*   0x6a616e20   */
  214. #define cFebruary                         'feb '                /*   0x66656220   */
  215. #define cMarch                             'mar '                /*   0x6d617220   */
  216. #define cApril                             'apr '                /*   0x61707220   */
  217. #define cMay                             'may '                /*   0x6d617920   */
  218. #define cJune                             'jun '                /*   0x6a756e20   */
  219. #define cJuly                             'jul '                /*   0x6a756c20   */
  220. #define cAugust                         'aug '                /*   0x61756720   */
  221. #define cSeptember                         'sep '                /*   0x73657020   */
  222. #define cOctober                         'oct '                /*   0x6f637420   */
  223. #define cNovember                         'nov '                /*   0x6e6f7620   */
  224. #define cDecember                         'dec '                /*   0x64656320   */
  225.  
  226.                                                             /*  Weekdays  */
  227. #define cWeekday                         'wkdy'
  228. #define cSunday                         'sun '                /*   0x73756e20   */
  229. #define cMonday                         'mon '                /*   0x6d6f6e20   */
  230. #define cTuesday                         'tue '                /*   0x74756520   */
  231. #define cWednesday                         'wed '                /*   0x77656420   */
  232. #define cThursday                         'thu '                /*   0x74687520   */
  233. #define cFriday                         'fri '                /*   0x66726920   */
  234. #define cSaturday                         'sat '                /*   0x73617420   */
  235.                                                             /*  AS 1.1 Globals:  */
  236. #define pASQuote                         'quot'                /*   0x71756f74   */
  237. #define pASSeconds                         'secs'                /*   0x73656373   */
  238. #define pASMinutes                         'min '                /*   0x6d696e20   */
  239. #define pASHours                         'hour'                /*   0x686f7572   */
  240. #define pASDays                         'days'                /*   0x64617973   */
  241. #define pASWeeks                         'week'                /*   0x7765656b   */
  242.                                                             /*  Writing Code things:  */
  243. #define cWritingCodeInfo                 'citl'                /*   0x6369746c   */
  244. #define pScriptCode                     'pscd'                /*   0x70736364   */
  245. #define pLangCode                         'plcd'                /*   0x706c6364   */
  246.                                                             /*  Magic Tell and End Tell events for logging:  */
  247. #define kASMagicTellEvent                 'tell'                /*   0x74656c6c   */
  248. #define kASMagicEndTellEvent             'tend'                /*   0x74656e64   */
  249.  
  250.  
  251. #endif /* __ASREGISTRY_R__ */
  252.  
  253.